package com.vallis.lotteryonline.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *   实票数据
 *   大乐透或双色球
 *  * @author vallis
 * @since 2020-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LottoReality extends Model<LottoReality> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 前区
     */
    @TableField("frontNum")
    private String frontNum;

    /**
     * 后区
     */
    @TableField("endNum")
    private String endNum;

    /**
     * 期数
     */
    private Integer num;

    /**
     * 此单注中奖金额
     */
    private BigDecimal ticketPrice;

    /**
     * 此单柱出现次数
     */
    private Integer existTimes;

    /**
     * 输入者
     */
    private String creater;

    /**
     * 锁
     */
    private Integer version;

    /**
     * 备用1  type(0->大乐透, 1->双色球)
     */
    private String prop1;

    /**
     * 备用2
     */
    private String prop2;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
